//
//  HFCalendarHeader.h
//  Pods
//
//  Created by Luffy on 2021/8/24.
//

#ifndef HFCalendarHeader_h
#define HFCalendarHeader_h

/// 屏幕宽高
#define SCREEN_WIDTH ([[UIScreen mainScreen] bounds].size.width)
#define SCREEN_HEIGHT ([[UIScreen mainScreen] bounds].size.height)

#define kIPhone  (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define kIPhoneX (SCREEN_WIDTH >= 375.0f && SCREEN_HEIGHT >= 812.0f && kIPhone)

/// 颜色
#define HFHexColor(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:1.0f]
#define HFHexColorA(hexValue, a) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:a]

#define CustomTitleColor HFHexColor(0x333333)
#define CustomRedColor   HFHexColor(0xDD514D)
#define CustomTodayColor UIColor.redColor
#define CustomBlackColor HFHexColor(0x4A4A4A)
#define CustomLineColor  HFHexColor(0xE3E3E3)
#define CustomGrayColor  HFHexColor(0x999999)

#define CustomSelectBindaryColor  HFHexColor(0x1678FF)
#define CustomSelectContentColor  HFHexColorA(0x1678FF, 0.75)


#endif /* HFCalendarHeader_h */
